/*
 * @Author: 徐伟杰/Hyuishine
 * @Date: 2022/5/19
 * @LastEditors: 徐伟杰
 * @LastEditTime: 2022-12-12 10:23:54
 * @Description: 首页
 * @Email: 1529315455@qq.com
 * @Company: 3xData
 * @youWant: add you want
 */
import globalPostRequest from '@/request/globalPostRequest.js'

// 获取曝光台列表数据
export function getExposureListApi (data, callback) {
	return globalPostRequest({
		url: '/exposure/list',
		method: 'get',
		data,
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}

// 获取技术服务机构已审核列表数据
export function getReviewedListApi (data, callback) {
	return globalPostRequest({
		url: '/agencyInfo/reviewedList',
		method: 'get',
		data,
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}

// 获取技术服务机构未审核列表数据
export function getNoReviewedListApi (data, callback) {
	return globalPostRequest({
		url: '/agencyInfo/noReviewedList',
		method: 'get',
		data,
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}

// 获取通知公告列表数据
export function getContentManageListApi (data, callback) {
	return globalPostRequest({
		url: '/contentManage/list',
		method: 'get',
		data,
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}


// 获取工作台机构信息是否需要提交
export function getSubmit (data, callback) {
	return globalPostRequest({
		url: '/agencyInfo/getState',
		method: 'get',
		data,
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}

// 获取通知公告详情列表数据
export function getContentManageByIdApi (data, callback) {
	return globalPostRequest({
		url: '/contentManage/byId/' + data,
		method: 'get',
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}

// 获取机构信息列表的详情数据
export function getAgencyInfoByIdApi (data, callback) {
	return globalPostRequest({
		url: '/agencyInfo/byId/' + data,
		method: 'get',
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}



// 获取当前角色所属的机构是否满足执业要求
export function getMeetRequireMent (data, callback) {
	return globalPostRequest({
		url: '/staff/getStaffApproveState',
		data,
		method: 'get',
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}


// 获取当前角色所属的机构是否满足执业要求
export function checkOperationStatus (data, callback) {
	return globalPostRequest({
		url: '/agencyInfo/checkOperationStatus',
		data,
		method: 'get',
		callback,
		header: {
			'content-type': 'application/json;charset=UTF-8'
		},
	})
}